package com;


import com.swings.swing.LoginFrame;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;


import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * @Author hl
 * @Date 2023/4/23 0:21
 * @PackageName:com
 * @ClassName: Application
 * @Description: TODO
 * @Version 1.0
 */
@SpringBootApplication(scanBasePackages = {"com.*"})
@MapperScan("com.storere.mapper")
public class Application {
    @Resource
    public LoginFrame loginFrame;

    private static LoginFrame staticLoginFrm;

    @PostConstruct
    public void init(){
        staticLoginFrm = this.loginFrame;
        staticLoginFrm.startOpen();
    }

    public static void main(String[] args) {
        System.setProperty("java.awt.headless", "false");
        SpringApplication.run(Application.class);
    }

}
